﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;

namespace Com.JJ1369.Service.Model.Validator
{
    public static class DepartmentTypeValidator
    {
        public const string NamValidator = "IsNameValid";

        public static ValidationResult IsNameValid(string name, ValidationContext context)
        {

            //if (name != "zero")
            //{
            //    return new ValidationResult("Name must be zero.", new string[] { "Name" });
            //}
            return ValidationResult.Success;
        }
    }
}